/**
 * function LangCtor() {
 * 
 *  // Adding a new language:
 *  //   1. Add it to `this.names`, The symbol name should match the folder name in res/locales/{name}
 *  //   2. Update file `ContinuousLocalization.yml`
 * 
 *  this.names = [
 */
const names = [
    { symbol: 'en', label: 'English' },
    { symbol: 'zh-CN', label: 'Chinese Simplified' },
    { symbol: 'zh-Hans', label: 'Chinese Simplified' },
    { symbol: 'zh-Hant', label: 'Chinese Traditional' },
    { symbol: 'zh-HK', label: 'Hong Kong Traditional' },
    { symbol: 'ja', label: 'Japanese' },
    { symbol: 'cs', label: 'Czech' },
    { symbol: 'ko', label: 'Korean' },
    { symbol: 'pl', label: 'Polish' },
    { symbol: 'ru', label: 'Russian' },
    { symbol: 'fr', label: 'French' },
    { symbol: 'fr-CA', label: 'Canadian French' },
    { symbol: 'de', label: 'German' },
    { symbol: 'it', label: 'Italian' },
    { symbol: 'nl', label: 'Dutch' },
    { symbol: 'es', label: 'Spanish' },
    { symbol: 'pt-PT', label: 'Portuguese Portugal' },
    { symbol: 'pt-BR', label: 'Portuguese Brazil' },
    { symbol: 'tr', label: 'Turkish' },
    { symbol: 'sv', label: 'Swedish' },
    { symbol: 'da', label: 'Danish' },
    { symbol: 'no', label: 'Norwegian' },
    { symbol: 'en-GB', label: 'British English' }];

const languages = [];

names.forEach(item => {
    languages.push("./res/locales/" + item.symbol + "/allstrings.json")
    languages.push("./res/locales/" + item.symbol + "/VCcrossRGBA8small.dds")
});

module.exports.languages = languages;